package com.exption;

import lombok.Data;
import lombok.EqualsAndHashCode;

@Data
@EqualsAndHashCode(callSuper = false)
public class GirlException extends RuntimeException {
    private static final long serialVersionUID = 1L;
    private ExceptionEnum exceptionEnum;
    private String msg ;
    public GirlException(String msg){
        super(msg);
        this.msg  = msg;
    }
    public GirlException(ExceptionEnum exceptionEnum){
        super(exceptionEnum.getMsg());
        this.exceptionEnum = exceptionEnum;
    }
    @Override
    public Throwable fillInStackTrace() {
        return this;
    }
}
